package androidawn.framework.control.operations;

import androidawn.framework.control.IUserOperation;
import androidawn.framework.control.UserOperationFields;
import androidawn.framework.control.UserOperations;

public class ClickUserOperation implements IUserOperation {

	private int viewId;
	
	public ClickUserOperation(int viewId)
	{
		this.viewId = viewId;
	}
	
	@Override
	public int getView() {
		return viewId;
	}

	@Override
	public int getOperationId() {
		return UserOperations.CLICK;
	}

	@Override
	public Object getInfo(int field) {
		switch(field)
		{
			case UserOperationFields.VIEW_ID:
				return viewId;
		}
		return null;
	}

}
